<%--
  Created by IntelliJ IDEA.
  User: Yang
  Date: 2021/11/22
  Time: 13:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html>
<%@include file="common/head.jsp"%>
<body style="background-color:white" class="nav-md">
<div class="container body">
    <%--    class="container-fluid"--%>
    <div style="padding-right: 15px;
    padding-left: 259px;
    margin-right: auto;
    margin-left: auto;">
        <div class="row">
            <p><span style="font-size: 20px">手游&nbsp;审核列表<span class="glyphicon glyphicon-user"></span></span> 系统管理员-您可以通过搜索或者其他的筛选项对手游的信息进行审核操作</p>
        </div>
        <form action="" method="post">
            <div class="row">
                <div class="col-md-4 form-group">
                    <label for="softwareName" style="margin-right: 20px">手游名称</label>
                    <input type="text" name="softwareName"  id="softwareName" placeholder="输入手游名称">
                </div>
                <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                    <label class="col-sm-3 control-label">所属平台</label>
                    <div class="col-sm-9">
                        <select class="form-control" id="flatformId" name="flatformId">
                            <option value="0">请选择</option>

                        </select>
                    </div>
                </div>
                <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                    <label class="col-sm-3 control-label">一级分类</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="categoryLevel1" id="categoryLevel1">
                            <option value="0">请选择</option>
                            <c:forEach items="${categoryLevel1}" var="level1">
                                <option value="${level1.parentId}">${level1.categoryName}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                    <label class="col-sm-3 control-label">二级分类</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="categoryLevel2"  id="categoryLevel2">
                            <option value="0">请选择</option>
                            <c:forEach items="${categoryLevel2}" var="level2">
                                <option value="${level2.parentId}">${level2.categoryName}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                    <label class="col-sm-3 control-label">三级分类</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="=categoryLevel3" id="categoryLevel3">
                            <option value="0">请选择</option>
                            <c:forEach items="${categoryLevel3}" var="level3">
                                <option value="${level3.parentId}">${level3.categoryName}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-4">
                    <button type="button" class="btn btn-primary btn-sm">查询</button>
                </div>
            </div>
        </form>
        <div class="row">
            <table class="table table-bordered">
                <tr>
                    <td>手游名称</td>
                    <td>APK名称</td>
                    <td>所属平台</td>
                    <td>所属分类(一级分类、二级分类、三级分类)</td>
                    <td>状态</td>
                    <td>软件大小(单位:M)</td>
                    <td>下载次数</td>
                    <td>最新版本号</td>
                    <td>操作</td>
                </tr>
                <c:forEach items="${appInfo}" var="app">
                    <tr>
                        <td>${app.softwareName}</td>
                        <td>${app.APKName}</td>
                        <td>${app.flatformname}</td>
                        <td>${app.categoryLevel1Name}>${app.categoryLevel2Name}>${app.categoryLevel3Name}</td>
                        <td>${app.statusname}</td>
                        <td>${app.softwareSize}</td>
                        <td>${app.downloads}</td>
                        <td>${app.versionname}</td>
                        <td><button type="button" class="btn btn-primary btn-sm">审核</button></td>
                    </tr>
                </c:forEach>
            </table>
            <div class="row" style="margin-right: auto">
                <span> 共${pageInfo.total}记录&nbsp;${pageInfo.pageNum}/${pageInfo.pages}</span>
                <a href="${pageContext.request.contextPath}/appInfoList?pageIndex=${pageIndex-1}">上一页</a>
                <a href="${pageContext.request.contextPath}/appInfoList?pageIndex=${pageIndex+1}">下一页</a>
            </div>
        </div>
    </div>
</div>
</body>
<%@include file="common/foot.jsp"%>
<script src="${pageContext.request.contextPath}/statics/js/jquery-1.12.4.js"></script>
<script>

    $("#categoryLevel2").change(function (){
        var categoryLevel1=$("#categoryLevel1").val()
        if (categoryLevel1==null){
            $("#categoryLevel2").html("");
        }else {
            $.
        }
    })

</script>
</html>
